import request from '@/utils/request';

const handlerName = 'RecycleBin';

export async function query(params) {
  return request(`/api/${handlerName}/GetPages`, {
    method: 'POST',
    data: params,
  });
}
export async function get(params) {
  return request(`/api/${handlerName}/Get`, {
    method: 'GET',
    params: { ...params },
  });
}
export async function remove(params) {
  return request(`/api/${handlerName}/Delete`, {
    method: 'DELETE',
    data: { ...params },
  });
}
export async function batchRemove(params) {
  return request(`/api/${handlerName}/BatchDelete`, {
    method: 'DELETE',
    data: { ...params },
  });
}
export async function restore(params) {
  return request(`/api/${handlerName}/Restore`, {
    method: 'PUT',
    data: { ...params },
  });
}
export async function batchRestore(params) {
  return request(`/api/${handlerName}/BatchRestore`, {
    method: 'PUT',
    data: { ...params },
  });
}
export async function getUseRecycleBinAttributeInfos(params) {
  return request(`/api/${handlerName}/GetUseRecycleBinAttributeInfos`, {
    method: 'GET',
    data: { ...params },
  });
}
